<?php

declare(strict_types=1);

namespace App\Model;



use Carbon\Carbon;

/**
 * @property int $id 
 * @property int $novel_id 小说id
 * @property int $chapter_number 章节数
 * @property string $name 章节名称
 * @property string $url 章节链接
 * @property string $content 小说内容
 * @property int $status 状态: 0.启用 1.禁言
 * @property Carbon $created_at 创建时间
 * @property Carbon $updated_at 更新时间
 * @property int $created_by 创建者
 * @property int $updated_by 修改人
 */
class NovelChapter extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'novel_chapter';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'novel_id', 'chapter_number', 'name', 'url', 'content', 'status', 'created_at', 'updated_at', 'created_by', 'updated_by'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'novel_id' => 'integer', 'chapter_number' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'created_by' => 'integer', 'updated_by' => 'integer'];
}
